<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: D:/doxy/PublicAPI/ATECCore/ATMeshfuncs.h 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_52a01df1794e5beec01860bdd05aea48.html">PublicAPI</a></li><li class="navelem"><a class="el" href="../../dir_b036ea399c584d2b2a32165352c4a594.html">ATECCore</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">ATMeshfuncs.h 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p><a href="../../d7/ddf/_a_t_meshfuncs_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a4e6e76d7167b5132b487c7db0a2fb80a"><td class="memItemLeft" align="right" valign="top">ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::StatusInt&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/ddf/_a_t_meshfuncs_8h.html#a4e6e76d7167b5132b487c7db0a2fb80a">atMesh_getPolyfaceArrays</a> (ATEC_NAMESPACE_NAME::ATDataCore::ATObjectDescrCP pMeshHeadED, ATEC_NAMESPACE_NAME::xvector&lt; int &gt; *pIndices, ATEC_NAMESPACE_NAME::xvector&lt; ATEC_NAMESPACE_NAME::XPoint3d &gt; *pXYZ, int *pNumIndexPerFace, int *pNumFace)</td></tr>
<tr class="memdesc:a4e6e76d7167b5132b487c7db0a2fb80a"><td class="mdescLeft">&#160;</td><td class="mdescRight">读取网格的索引和坐标数组；输出可能为NULL  <a href="../../d7/ddf/_a_t_meshfuncs_8h.html#a4e6e76d7167b5132b487c7db0a2fb80a">更多...</a><br /></td></tr>
<tr class="separator:a4e6e76d7167b5132b487c7db0a2fb80a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f6b37d776983737d679b57a92f57818"><td class="memItemLeft" align="right" valign="top">ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::StatusInt&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/ddf/_a_t_meshfuncs_8h.html#a3f6b37d776983737d679b57a92f57818">atMesh_intersectRayWithMeshTriangles</a> (ATEC_NAMESPACE_NAME::xvector&lt; ATEC_NAMESPACE_NAME::XPoint3d &gt; *pIntersectionXYZArray, ATEC_NAMESPACE_NAME::xvector&lt; ATEC_NAMESPACE_NAME::XPoint3d &gt; *pIntersectionBarycentricArray, ATEC_NAMESPACE_NAME::xvector&lt; double &gt; *pIntersectionParameterArray, ATEC_NAMESPACE_NAME::xvector&lt; int &gt; *pIntersectionFaceReadArray, ATEC_NAMESPACE_NAME::ATDataCore::ATObjectDescrP pMeshHead, ATEC_NAMESPACE_NAME::XPoint3dCP pOrigin, ATEC_NAMESPACE_NAME::XPoint3dCP pDirection)</td></tr>
<tr class="memdesc:a3f6b37d776983737d679b57a92f57818"><td class="mdescLeft">&#160;</td><td class="mdescRight">计算网格中三角面与射线的所有交点  <a href="../../d7/ddf/_a_t_meshfuncs_8h.html#a3f6b37d776983737d679b57a92f57818">更多...</a><br /></td></tr>
<tr class="separator:a3f6b37d776983737d679b57a92f57818"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a784bf0e194b68d1999d03dda90cb2b58"><td class="memItemLeft" align="right" valign="top">ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::StatusInt&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/ddf/_a_t_meshfuncs_8h.html#a784bf0e194b68d1999d03dda90cb2b58">atMesh_intersectRayWithMeshTrianglesFromPolyfaceArrays</a> (ATEC_NAMESPACE_NAME::xvector&lt; ATEC_NAMESPACE_NAME::XPoint3d &gt; *pIntersectionXYZArray, ATEC_NAMESPACE_NAME::xvector&lt; ATEC_NAMESPACE_NAME::XPoint3d &gt; *pBarycentricArray, ATEC_NAMESPACE_NAME::xvector&lt; double &gt; *pParameterArray, ATEC_NAMESPACE_NAME::xvector&lt; int &gt; *pFaceReadArray, ATEC_NAMESPACE_NAME::XPoint3dCP pOrigin, ATEC_NAMESPACE_NAME::XPoint3dCP pDirection, const ATEC_NAMESPACE_NAME::xvector&lt; ATEC_NAMESPACE_NAME::XPoint3d &gt; *pXYZArray, const ATEC_NAMESPACE_NAME::xvector&lt; int &gt; *pIndexArray, int numPerFace)</td></tr>
<tr class="memdesc:a784bf0e194b68d1999d03dda90cb2b58"><td class="mdescLeft">&#160;</td><td class="mdescRight">计算网格中三角面与直线的所有交点  <a href="../../d7/ddf/_a_t_meshfuncs_8h.html#a784bf0e194b68d1999d03dda90cb2b58">更多...</a><br /></td></tr>
<tr class="separator:a784bf0e194b68d1999d03dda90cb2b58"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><dl class="section author"><dt>作者</dt><dd>SZEWC </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2022/04/28 </dd></dl>
</div><h2 class="groupheader">函数说明</h2>
<a id="a4e6e76d7167b5132b487c7db0a2fb80a" name="a4e6e76d7167b5132b487c7db0a2fb80a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e6e76d7167b5132b487c7db0a2fb80a">&#9670;&nbsp;</a></span>atMesh_getPolyfaceArrays()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::StatusInt atMesh_getPolyfaceArrays </td>
          <td>(</td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::ATDataCore::ATObjectDescrCP&#160;</td>
          <td class="paramname"><em>pMeshHeadED</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::xvector&lt; int &gt; *&#160;</td>
          <td class="paramname"><em>pIndices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::xvector&lt; ATEC_NAMESPACE_NAME::XPoint3d &gt; *&#160;</td>
          <td class="paramname"><em>pXYZ</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>pNumIndexPerFace</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>pNumFace</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>读取网格的索引和坐标数组；输出可能为NULL </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::ATDataCore::ATObjectDescrCP</td><td>pMeshHeaderED 网格元素 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::xvector&lt;int&gt;</td><td>* pIndices 索引数组 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::xvector&lt;ATEC_NAMESPACE_NAME::XPoint3d&gt;</td><td>* pXYZ 顶点坐标数组 </td></tr>
    <tr><td class="paramname">int</td><td>* pNumIndexPerFace 每个面的顶点数（-1代表面的顶点数可能不同） </td></tr>
    <tr><td class="paramname">int</td><td>* pNumFace 面数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::StatusInt 成功时返回SUCCESS</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/19 </dd></dl>

</div>
</div>
<a id="a3f6b37d776983737d679b57a92f57818" name="a3f6b37d776983737d679b57a92f57818"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f6b37d776983737d679b57a92f57818">&#9670;&nbsp;</a></span>atMesh_intersectRayWithMeshTriangles()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::StatusInt atMesh_intersectRayWithMeshTriangles </td>
          <td>(</td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::xvector&lt; ATEC_NAMESPACE_NAME::XPoint3d &gt; *&#160;</td>
          <td class="paramname"><em>pIntersectionXYZArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::xvector&lt; ATEC_NAMESPACE_NAME::XPoint3d &gt; *&#160;</td>
          <td class="paramname"><em>pIntersectionBarycentricArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::xvector&lt; double &gt; *&#160;</td>
          <td class="paramname"><em>pIntersectionParameterArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::xvector&lt; int &gt; *&#160;</td>
          <td class="paramname"><em>pIntersectionFaceReadArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::ATDataCore::ATObjectDescrP&#160;</td>
          <td class="paramname"><em>pMeshHead</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::XPoint3dCP&#160;</td>
          <td class="paramname"><em>pOrigin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::XPoint3dCP&#160;</td>
          <td class="paramname"><em>pDirection</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>计算网格中三角面与射线的所有交点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::xvector&lt;ATEC_NAMESPACE_NAME::XPoint3d&gt;</td><td>* pIntersectionXYZArray 交点的xyz坐标 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::xvector&lt;ATEC_NAMESPACE_NAME::XPoint3d&gt;</td><td>* pIntersectionBarycentricArray 交点的重心坐标 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::xvector&lt;double&gt;</td><td>* pIntersectionParameterArray 交点在射线上的参数 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::xvector&lt;int&gt;</td><td>* pIntersectionFaceReadArray <br  />
 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::ATDataCore::ATObjectDescrP</td><td>pMeshHeader 网格元素 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::XPoint3dCP</td><td>pOrigin 射线原点 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::XPoint3dCP</td><td>pDirection 射线方向 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::StatusInt 成功时返回SUCCESS</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/19 </dd></dl>

</div>
</div>
<a id="a784bf0e194b68d1999d03dda90cb2b58" name="a784bf0e194b68d1999d03dda90cb2b58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a784bf0e194b68d1999d03dda90cb2b58">&#9670;&nbsp;</a></span>atMesh_intersectRayWithMeshTrianglesFromPolyfaceArrays()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::StatusInt atMesh_intersectRayWithMeshTrianglesFromPolyfaceArrays </td>
          <td>(</td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::xvector&lt; ATEC_NAMESPACE_NAME::XPoint3d &gt; *&#160;</td>
          <td class="paramname"><em>pIntersectionXYZArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::xvector&lt; ATEC_NAMESPACE_NAME::XPoint3d &gt; *&#160;</td>
          <td class="paramname"><em>pBarycentricArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::xvector&lt; double &gt; *&#160;</td>
          <td class="paramname"><em>pParameterArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::xvector&lt; int &gt; *&#160;</td>
          <td class="paramname"><em>pFaceReadArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::XPoint3dCP&#160;</td>
          <td class="paramname"><em>pOrigin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATEC_NAMESPACE_NAME::XPoint3dCP&#160;</td>
          <td class="paramname"><em>pDirection</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const ATEC_NAMESPACE_NAME::xvector&lt; ATEC_NAMESPACE_NAME::XPoint3d &gt; *&#160;</td>
          <td class="paramname"><em>pXYZArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const ATEC_NAMESPACE_NAME::xvector&lt; int &gt; *&#160;</td>
          <td class="paramname"><em>pIndexArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numPerFace</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>计算网格中三角面与直线的所有交点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::xvector&lt;ATEC_NAMESPACE_NAME::XPoint3d&gt;</td><td>* pIntersectionXYZArray 交点的xyz坐标 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::xvector&lt;ATEC_NAMESPACE_NAME::XPoint3d&gt;</td><td>* pBarycentricArray 交点的重心坐标 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::xvector&lt;double&gt;</td><td>* pParameterArray 交点在射线上的参数 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::xvector&lt;int&gt;</td><td>* pFaceReadArray <br  />
 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::XPoint3dCP</td><td>pOrigin 射线原点 </td></tr>
    <tr><td class="paramname">ATEC_NAMESPACE_NAME::XPoint3dCP</td><td>pDirection 射线方向 </td></tr>
    <tr><td class="paramname">const</td><td>ATEC_NAMESPACE_NAME::xvector&lt;ATEC_NAMESPACE_NAME::XPoint3d&gt; * pXYZArray 顶点数组 </td></tr>
    <tr><td class="paramname">const</td><td>ATEC_NAMESPACE_NAME::xvector&lt;int&gt; * pIndexArray 索引数组 </td></tr>
    <tr><td class="paramname">int</td><td>numPerFace 每个面的顶点数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>ATECCORE_EXPORTED ATEC_NAMESPACE_NAME::StatusInt 成功时返回SUCCESS</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/19 </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
